package com.huike.web.controller.system;

import com.huike.clues.domain.dto.SystemDictDataDto;
import com.huike.clues.service.ISysDictService;
import com.huike.common.core.controller.BaseController;
import com.huike.common.core.domain.AjaxResult;
import com.huike.common.core.domain.entity.SysDictDataDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/system/dict/data")
@RestController
public class SysDictDataController extends BaseController {
    @Autowired
    private ISysDictService sysDictService;
    /**
     * 新增字典数据
     */
    @PostMapping
    public AjaxResult addData(SysDictDataDTO dictData){
        return AjaxResult.success(sysDictService.addData(dictData));
    }
}
